<table>
<thead><tr>
<?php 
   		foreach($objDef->attributes as $fieldName => $att){
   			if($att['list'] and !in_array($fieldName, $hide) and $att['type'] != 'List')
	   			echo '<th>'.$objDef->renderLabel($fieldName).'</th>';	
	   	}
   		
?>
<th>Actions</th>
</tr></thead>
<tbody>
<?php foreach($records as $item):?>
<tr>
<?php 
	foreach($objDef->attributes as $fieldName => $att):
	   	if($att['list'] and !in_array($fieldName, $hide) and $att['type'] != 'List'):?>
		<td>
		   	<?php echo $objDef->renderAttributeValue($item, $fieldName);?> 
		 </td>
		<?php endif;
	endforeach;?>
	<td>
	<?php 
		if($className=='evenement'){
			$title = __('Asign event to a client');
		}else{
			$title = __('Asign contact to a client');
		}
	?>
	<a class="fancy" href="<?php echo url_for('clients/assignContact?class=' . $className . '&contacte_id='.$item['id']);?>"><img src="/images/icons/32/infoperso.png" title="<?php echo $title?>"></a>
	<a href="javascript:ignore('<?php echo $className?>', <?php echo $item['id']?>)"><img src="/images/icons/32/ignore.png" title="<?php echo __('Ignorer')?>"></a>
	</td>
</tr>
<?php endforeach;?>
</tbody>
</table>